package me.zhengjie.modules.oneapi.domain;

import lombok.Data;

@Data
public class OneResponse<T> {

    public static final int SUCCESS = 0;
    public static final int EXCEPTION = -1;
    /**
     * 验证码错误
     */
    public static final int VERIFY_CODE_ERROR = -1001;
    /**
     * 验证码过期
     */
    public static final int VERIFY_CODE_EXPIRED = -1002;
    /**
     * 密码错误
     */
    public static final int LOGIN_USER_PWD_ERROR = -2001;
    /**
     * 用户被禁用
     */
    public static final int LOGIN_USER_INVALID = -2002;

    private T data;
    private int code;
    private String msg;
}
